package org.example.test.service.impl;

import org.example.test.entity.Position;
import org.example.test.mapper.PositionMapper;
import org.example.test.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PositionServiceImpl implements PositionService {
    @Autowired
    private PositionMapper positionMapper;
    @Override
    public List<Position> findAll(String positionName) {
        return positionMapper.findAll(positionName);
    }

    @Override
    public int delete(Integer positionId) {
        return positionMapper.delete(positionId);
    }

    @Override
    public int update(Position position) {
        return positionMapper.update(position);
    }

    @Override
    public int add(Position position) {
        return positionMapper.add(position);
    }
}
